package cn.yy.cm.service.impl;

import cn.yy.cm.domain.User;
import cn.yy.cm.mapper.UserMapper;
import cn.yy.cm.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 描述:
 *
 * @author: yanglin
 * @Date: 2021-11-29-10:53
 * @Version: 1.0
 */
@Slf4j
@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public void queryUserList() {
        List<User> list = userMapper.findUserListByName("李思思");
        list.forEach( u -> {
            log.info(u.toString());
        });
    }
}
